﻿<Window x:Class="Yottamud_Project_V3.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Yottamud Client" Height="886" Width="1580" Background="Black" xmlns:my="clr-namespace:NumericBox;assembly=NumericBox" WindowState="Maximized">
    <Window.Resources>
        <DataTemplate x:Key="ItemTemplate">
            <StackPanel Orientation="Horizontal">
                <Button Content="Buy" Tag="{Binding ShopItem}"/>
                <Label Content="{Binding ShopItem}" />
                <Label Content="{Binding ShopItemPrice}" HorizontalContentAlignment="Center"/>
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <GroupBox x:Name="displayGB" Header="Display" Margin="10,33,0,66" Background="Black" HorizontalAlignment="Left" Width="711">
            <GroupBox.Foreground>
                <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlLightLightColorKey}}"/>
            </GroupBox.Foreground>
            <WindowsFormsHost x:Name="wfhDisplay" Margin="0,0,-2,2" Height="Auto" Width="Auto" SnapsToDevicePixels="True" />
        </GroupBox>
        <Menu Height="27" VerticalAlignment="Top" HorizontalAlignment="Left" Width="721">
            <Menu.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="White" Offset="1" />
                </LinearGradientBrush>
            </Menu.Background>
            <Button x:Name="btnConnectToServer" Content="Connect" Click="btnConnectToServer_Click"/>
            <Button x:Name="btnSystemSettings" Content="Settings" Click="SettingMode"/>
        </Menu>
        <TabControl Height="729" HorizontalAlignment="Left" Margin="727,52,0,0" Name="tabControl1" VerticalAlignment="Top" Width="819">
            <TabItem Header="Debug" Name="tabItem1">
                <Grid>
                    <TextBox Margin="21,581,0,0" Name="debugRoomInfo" Height="100" VerticalAlignment="Top" HorizontalAlignment="Left" Width="658" />
                    <TextBox Height="114" HorizontalAlignment="Left" Margin="21,354,0,0" Name="debugRoom" VerticalAlignment="Top" Width="658" />
                    <Ellipse Height="20" HorizontalAlignment="Right" Margin="0,29,322,0" Name="combatStatus" Stroke="Black" VerticalAlignment="Top" Width="20" Fill="Red" />
                    <Label Content="Combat Status:" Height="28" HorizontalAlignment="Left" Margin="371,24,0,0" Name="label2" VerticalAlignment="Top" />
                    <Image Height="32" HorizontalAlignment="Left" Margin="613,29,0,0" Name="restIcon" Stretch="Fill" VerticalAlignment="Top" Width="37" Source="/Yottamud%202013%20v3%20Main;component/Images/restingIcon.png" Visibility="Hidden" />
                    <CheckBox Content="Use AoE" Height="16" HorizontalAlignment="Left" Margin="11,29,0,0" VerticalAlignment="Top" Name="cbUseAoeAttack" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="118,24,0,0" VerticalAlignment="Top" Width="120" Name="cbUseAoeSpell">
                        <ComboBoxItem Content="wrog" />
                    </ComboBox>
                </Grid>
            </TabItem>
            <TabItem Header="Chat" Name="Chat">
                <Grid>
                    <TabControl Height="423" HorizontalAlignment="Left" Margin="6,258,0,0" Name="tabControl2" VerticalAlignment="Top" Width="673">
                        <TabItem Header="Gossips" Name="tabItem3">
                            <Grid>
                                <RichTextBox Height="379" HorizontalAlignment="Left" Margin="6,6,0,0" Name="rtbGossip" VerticalAlignment="Top" Width="651" Background="Black" Foreground="Magenta" />
                            </Grid>
                        </TabItem>
                        <TabItem Header="Gangpaths" Name="tabItem4">
                            <Grid />
                        </TabItem>
                        <TabItem Header="Telepath" Name="tabItem5">
                            <Grid>
                                <RichTextBox Background="Black" Foreground="Cyan" Height="379" HorizontalAlignment="Left" Margin="6,6,0,0" Name="rtbTelepath" VerticalAlignment="Top" Width="651" />
                            </Grid>
                        </TabItem>
                    </TabControl>
                </Grid>
            </TabItem>
            <TabItem Header="Stat Data" Name="tabItem2">
                <Grid>
                    <ProgressBar HorizontalAlignment="Right" Margin="0,0,119,597" Name="healthBar" Width="560" Background="Black" Height="21" VerticalAlignment="Bottom" />
                </Grid>
            </TabItem>
            <TabItem Header="Inventory" Name="tabItem6">
                <Grid>
                    <GroupBox Header="Keys" Height="181" HorizontalAlignment="Left" Margin="6,514,0,0" Name="groupBox1" VerticalAlignment="Top" Width="321">
                        <Grid>
                            <ListView Height="146" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lvKeys" VerticalAlignment="Top" Width="297" >
                            <ListView.ItemContainerStyle>
                                <Style TargetType="{x:Type ListViewItem}">
                                    <EventSetter Event="Mouse.MouseEnter" Handler="Show_PopupToolTip" />
                                    <EventSetter Event="Mouse.MouseLeave" Handler="Hide_PopupToolTip" />
                                </Style>
                            </ListView.ItemContainerStyle>
                            </ListView>
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Equipped Items" Height="492" HorizontalAlignment="Left" Margin="6,16,0,0" Name="groupBox2" VerticalAlignment="Top" Width="345">
                        <Grid>
                            <ListView Height="457" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lvWornItems" VerticalAlignment="Top" Width="321" AlternationCount="1">
                                <ListView.ItemContainerStyle>
                                    <Style TargetType="{x:Type ListViewItem}">
                                        <EventSetter Event="Mouse.MouseEnter" Handler="Show_PopupToolTip" />
                                        <EventSetter Event="Mouse.MouseLeave" Handler="Hide_PopupToolTip" />
                                    </Style>
                                </ListView.ItemContainerStyle>
                            </ListView>
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Unequipped Items" Height="492" HorizontalAlignment="Left" Margin="357,16,0,0" Name="groupBox3" VerticalAlignment="Top" Width="322">
                        <Grid>
                            <ListView Height="457" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lvUnequippedItems" VerticalAlignment="Top" Width="298">
                                <ListView.ItemContainerStyle>
                                    <Style TargetType="{x:Type ListViewItem}">
                                        <EventSetter Event="Mouse.MouseEnter" Handler="Show_PopupToolTip" />
                                        <EventSetter Event="Mouse.MouseLeave" Handler="Hide_PopupToolTip" />
                                    </Style>
                                </ListView.ItemContainerStyle>
                            </ListView>
                        </Grid>
                    </GroupBox>
                </Grid>
            </TabItem>
            <TabItem Header="Monster History" Name="tabItem7">
                <Grid>
                    <GroupBox Header="NPC's Encountered" Height="448" HorizontalAlignment="Left" Margin="6,6,0,0" Name="groupBox4" VerticalAlignment="Top" Width="259">
                        <Grid>
                            <ListView Height="413" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lvNpcList" VerticalAlignment="Top" Width="233" >
                                <ListView.ItemContainerStyle>
                                    <Style TargetType="{x:Type ListViewItem}">
                                        <EventSetter Event="Mouse.MouseEnter" Handler="Show_PopupMonsterToolTip" />
                                        <EventSetter Event="Mouse.MouseLeave" Handler="Hide_PopupMonsterToolTip" />
                                    </Style>
                                </ListView.ItemContainerStyle>
                            </ListView>
                        </Grid>
                    </GroupBox>
                </Grid>
            </TabItem>
            <TabItem Header="Store" Name="tabItem8">
                <Grid>
                    <ListView Height="451" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lvShopItems" VerticalAlignment="Top" Width="393" ItemTemplate ="{StaticResource ItemTemplate}">
                        <ListView.ItemContainerStyle>
                            <Style TargetType="{x:Type ListViewItem}">
                                <EventSetter Event="Mouse.MouseEnter" Handler="Show_ShopToolTip" />
                                <EventSetter Event="Mouse.MouseLeave" Handler="Hide_ShopToolTip" />
                            </Style>
                        </ListView.ItemContainerStyle>
                    </ListView>
                    <Popup  Height="Auto" Width="Auto" Name="ShopToolTip" StaysOpen="True" AllowsTransparency="True" VerticalOffset="50" HorizontalOffset="50" PopupAnimation="Fade">
                        <StackPanel Name="ShopPanel" Visibility="Visible" Margin="405,6,0,522">
                            <Border BorderThickness="1" Background="Black">
                                <StackPanel Margin="15" Orientation="Vertical">
                                    <TextBlock Name="ShopName" Foreground="White" />
                                    <TextBlock Name="ShopAccuracy" Foreground="White" />
                                    <TextBlock Name="ShopArmourClass" Foreground="White" />
                                    <TextBlock Name="ShopDamageResist" Foreground="White" />
                                    <TextBlock Name="ShopSpeed" Foreground="White" />
                                    <TextBlock Name="ShopDamage" Foreground="White" />
                                    <TextBlock Name="ShopAbilityInfo" Foreground="White" />
                                </StackPanel>
                            </Border>
                        </StackPanel>
                    </Popup>
                </Grid>
            </TabItem>
        </TabControl>
        <StackPanel Name="MyPanel" Visibility="Hidden" Margin="0,325,0,0">
            <Popup  Height="Auto" Width="Auto" Name="MyToolTip" StaysOpen="True" AllowsTransparency="True" VerticalOffset="50" HorizontalOffset="50" PopupAnimation="Fade">
                <Border BorderThickness="1" Background="Black" >
                    <StackPanel Margin="15"  Orientation="Vertical">
                        <TextBlock  Name="Name" Foreground="White"/>
                        <TextBlock  Name="Accuracy" Foreground="White"/>
                        <TextBlock  Name="ArmourClass"  Foreground="White"/>
                        <TextBlock  Name="DamageResist"  Foreground="White"/>
                        <TextBlock  Name="Speed"  Foreground="White"/>
                        <TextBlock  Name="Damage"  Foreground="White"/>
                        <TextBlock  Name="AbilityInfo"  Foreground="White"/>
                        
                    </StackPanel>
                </Border>
            </Popup>
        </StackPanel>
        <StackPanel Name="MonsterPanel" Visibility="Hidden" Margin="0,283,0,0">
            <Popup  Height="Auto" Width="Auto" Name="MonsterToolTip" StaysOpen="True" AllowsTransparency="True" VerticalOffset="50" HorizontalOffset="50" PopupAnimation="Fade">
                <Border BorderThickness="1" Background="Black" >
                    <StackPanel Margin="15"  Orientation="Vertical">
                        <TextBlock  Name="NpcName" Foreground="White"/>
                        <TextBlock  Name="NpcHP" Foreground="White"/>
                        <TextBlock  Name="NpcAC" Foreground="White"/>
                        <TextBlock  Name="NpcDR" Foreground="White"/>
                        <TextBlock  Name="NpcExp"  Foreground="White"/>
                        <TextBlock  Name="NpcDrops"  Foreground="White"/>
                        <TextBlock  Name="NpcSpells"  Foreground="White"/>
                    </StackPanel>
                </Border>
            </Popup>
        </StackPanel>
        <Grid Margin="16,0,841,12" Name="grid1" Height="48" VerticalAlignment="Bottom">
            <TextBox Margin="6,11,0,0" Name="inputCommand" KeyDown="inputCommand_KeyDown" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" Width="615" />
        </Grid>
        <Menu Height="46" HorizontalAlignment="Left" Margin="727,0,0,0" Name="actionMenu" VerticalAlignment="Top" Width="821">
            <Menu.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="Black" Offset="0.784" />
                    <GradientStop Color="White" Offset="0" />
                </LinearGradientBrush>
            </Menu.Background>
            <Button x:Name="btnAutoAttack" Content="Attack" Width="40" Height="40" ClickMode="Press">
                <Button.Background>
                    <ImageBrush ImageSource="/Yottamud%202013%20v3%20Main;component/Images/autoAttackIcon.png" />
                </Button.Background>
            </Button>
        </Menu>
    </Grid>
 
</Window>
